﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityModel
{
    public class People
    {
        /// <summary>
        /// 数据唯一标识符
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid ID { get; set; }

        /// <summary>
        /// 姓
        /// </summary>
        [StringLength(20)]
        [Required]
        public string? FirstName { get; set; }

        /// <summary>
        /// 名
        /// </summary>
        [StringLength(30)]
        [Required]
        public string? LastName { get; set; }

        /// <summary>
        /// 居住地址
        /// </summary>
        [Required]
        [StringLength(150)]
        public string? Address { get; set; }

        /// <summary>
        /// 是否在外务工
        /// </summary>
        [Required]
        public bool IsOut { get; set; }

        /// <summary>
        /// 年龄
        /// </summary>
        [Required]
        public int Age { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        [Required]
        public bool Gender { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public bool MyProperty { get; set; }

        /// <summary>
        /// 标记_空巢老人
        /// </summary>
        public bool lable_empty { get; set; }


        /// <summary>
        /// 标记_贫困人口
        /// </summary>
        public bool lable_poverty { get; set; }

        /// <summary>
        /// 标记_慢性病人口
        /// </summary>
        public bool lable_chronic { get; set; }

        /// <summary>
        /// 出生日期
        /// </summary>
        public DateTime BirthDate { get; set; }

        /// <summary>
        /// 18位身份证号码
        /// </summary>
        public string? IDNumber { get; set; }

        /// <summary>
        /// 注册时间
        /// </summary>
        public DateTime AddTime { get; set; }
    }
}
